//Wednesday, September 14, 2011 14:52 CDT
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class TwiceString
{
	public String getShortest(String s)
	{
		int N = s.length();
		String ret = "";
		for(int i=0; i<N; i++){
			String str = s + s.substring(i, N);
			if(str.startsWith(s) && str.endsWith(s))
				ret = str;
		}
		return ret;
	}
}
//Powered by [KawigiEdit] 2.0!
